#ifndef PARTICLES_DIALOG_H
#define PARTICLES_DIALOG_H

#include <QDialog>
#include <QtGui>

#include "defines/global.h"

class ParticlesDialog : public QDialog{
    Q_OBJECT

    public:
        ParticlesDialog(TreeItem *, QWidget * = 0);
        ~ParticlesDialog();

    signals:
        void done();

    private:
        TreeItem *item;

        int colorR, colorG, colorB, colorAlpha;
		double mass, kdAir, miC;
//		int configuration;

		QPushButton *colorPushButton;
		QGroupBox *massGroupBox;
		QGroupBox *kdAirGroupBox;
        QGroupBox *miCGroupBox;
        QGroupBox *colorGroupBox;

        void createLayout();

        void setButtonColor();

    private slots:
        void acceptChange();
        void changeColor();
        void changeMass(double);
        void changeKdAir(double);
        void changeMiC(double);
//        void changeConfiguration(int);
};

#endif

